package com.atguigu.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//自己定义异常
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GuliException extends RuntimeException {
    private Integer code;//状态码
    private String msg;

    @Override
    public String toString(){
        return "GuliException{" +
                "message=" + this.getMessage() +
                ", code=" + code +
                '}';
    }
}
